package ScoreBL;

import po.ScoreCellPO;
import po.ScorePO;
import ScoreData.ScoreDataController;

public class ScoreDriver
{
	ScoreDataController sdc;
	ScorePO sp;
	ScoreCellPO scp;
	
	
	public ScoreDriver() 
	{
		sdc = new ScoreDataController();
		
		scp=new ScoreCellPO();
		scp.score="0";
		scp.studentID="test001";
		scp.lessonID="test001";
		
		sp = new ScorePO();
		sp.list.add(scp);
	}
	
	public boolean driveInsertCell()
	{
		return sdc.insertCell(scp);
	}
	public ScorePO driveGetOfStudent()
	{
		return sdc.getOfStudent("test001");
	}
	
	public boolean driveSet(ScorePO aim)
	{
		return sdc.set(sp);
	}
	
	public ScorePO driveGetOfTeacher()
	{
		return sdc.getOfTeacher("test001");
	}
	
	public boolean driveDelCell()
	{
		return sdc.delCell(scp);
	}
	
}
